package mlc.ore;

public class Ore {
	
	private boolean diggable = true;
	private double volume = 1;
	private double spawn;
	private double sellPrice;
	private double digPoints;
	private double startingDepth;
	
	public Ore(boolean diggable, double volume, double spawn, double sellPrice, double digPoints, double startingDepth) {
		this.diggable = diggable;
		this.volume = volume;
		this.spawn = spawn;
		this.sellPrice = sellPrice;
		this.digPoints = digPoints;
		this.startingDepth = startingDepth;
		
		//If ore has no volume or no sellPrice, both values are better to be set to 0
		if(volume <= 0 || sellPrice <=0){
			this.volume = 0;
			this.sellPrice = 0;
		}
	}

	public boolean isDiggable() {
		return diggable;
	}
	
	public boolean isStorable(){
		return this.volume > 0;
	}
	
	public boolean isSaleable(){
		return this.sellPrice > 0;
	}

	public double getVolume() {
		return volume;
	}

	public double getSpawn() {
		return spawn;
	}

	public double getSellPrice() {
		return sellPrice;
	}

	public double getDigPoints() {
		return digPoints;
	}

	public double getStartingDepth() {
		return startingDepth;
	}
}
